package cn.topevery.garden.framework;

import hw.topevery.framework.db.DbExecute;

/**
 * @author bingxin.xu
 */
public class Database {
    public static final DbExecute pmiDbExecute;
    public static final DbExecute gardenDbExecute;

    public static final DbExecute wfDbExecute;

    static {
        pmiDbExecute = DbExecute.getInstance("pmiDatabase");
        wfDbExecute = DbExecute.getInstance("wfDatabase");
        gardenDbExecute = DbExecute.getInstance("gardenDatabase");
    }

    public static void transactionScope(Runnable active) {
        gardenDbExecute.transactionScope(active);
    }
}
